package mockbase;

public class Animal {

    private String name;

    private int age;


    public int getAgePlus1() {
        return this.age + 1;
    }

    public boolean likeFood(int i) {
        return i > 1;
    }

    public String typeName(String name) {
        return name + "type";
    }


    public void printName() {
        System.out.println(this.name);
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override public String toString() {
        return "Animal{" + "name='" + name + '\'' + ", age=" + age + '}';
    }
}
